import {Injectable, NestMiddleware} from "@nestjs/common";

@Injectable()
export class AppService implements NestMiddleware{
    use(req,res,next){
        console.log('app-service middleware')
        res.send(req.body)
    }
}


@Injectable()
export class CatService implements NestMiddleware{
    use(req,res,next){
        console.log('cat-service middleware')
        next()
    }
}
